package com.queming.core.entity;

import com.queming.core.enums.FileStatus;
import com.queming.core.enums.FileType;
import com.queming.core.enums.Storage;
import lombok.Data;

import javax.persistence.*;

/**
 * @author chencidiao
 * @date 2022/05/04 12:42
 **/
@Entity
@Data
public class File extends TraceableBaseEntity {

    private String name;

    @Column(name = "file_key")
    private String key;

    private String ext;

    private Integer size;

    @Enumerated(EnumType.STRING)
    private FileType type;

    @Enumerated(EnumType.STRING)
    private Storage storage;

    @Enumerated(EnumType.STRING)
    private FileStatus status=FileStatus.UPLOADING;

}
